import { t } from 'i18next'
import React, { FC } from 'react'
import { Wrap, IconTips } from './style'

export interface ListEmptyProps {
	width: number
	height: number
	outerRef?: ((instance: any) => void) | React.RefObject<any>
	label?: string
}
export const ListEmpty: FC<ListEmptyProps> = (props) => {
	return (
		<Wrap ref={props.outerRef} style={{ width: `${props.width}px`, height: `${props.height}px` }}>
			<IconTips className="icon-tips" />
			<span>{props.label ? props.label : t('请拖拽与会方至此列表中')}</span>
		</Wrap>
	)
}
